Class EspHeaderImpl

All Implemented Interfaces:
IPCData, EspHeader, Header, Pdu, Signal

public class EspHeaderImpl extends HeaderImpl implements EspHeader
  • Field Details

    • nextHeader

      protected int nextHeader
    • paddingLength

      protected int paddingLength
    • spi

      protected int spi
    • sequenceNumber

      protected int sequenceNumber
    • padding

      protected int padding
    • encryptionData

      protected String encryptionData
    • authenticationData

      protected String authenticationData
    • espEncryption

      protected EspEncryption espEncryption
    • espAuthentication

      protected EspAuth espAuthentication
  • Constructor Details

    • EspHeaderImpl

      public EspHeaderImpl()
  • Method Details

    • getNextHeader

      public int getNextHeader()
      Specified by:
      getNextHeader in interface EspHeader
      Returns:
      int Returns a int
    • setNextHeader

      public void setNextHeader(int nextHeader)
      Specified by:
      setNextHeader in interface EspHeader
      Parameters:
      nextHeader - Takes in a parameter of nextHeader
    • getPaddingLength

      public int getPaddingLength()
      Specified by:
      getPaddingLength in interface EspHeader
      Returns:
      int Returns a int
    • setPaddingLength

      public void setPaddingLength(int paddingLength)
      Specified by:
      setPaddingLength in interface EspHeader
      Parameters:
      paddingLength - Takes in a parameter of paddingLength
    • getSpi

      public int getSpi()
      Specified by:
      getSpi in interface EspHeader
      Returns:
      int Returns a int
    • setSpi

      public void setSpi(int spi)
      Specified by:
      setSpi in interface EspHeader
      Parameters:
      spi - Takes in a parameter of spi
    • getSequenceNumber

      public int getSequenceNumber()
      Specified by:
      getSequenceNumber in interface EspHeader
      Returns:
      int Returns a int
    • setSequenceNumber

      public void setSequenceNumber(int sequenceNumber)
      Specified by:
      setSequenceNumber in interface EspHeader
      Parameters:
      sequenceNumber - Takes in a parameter of sequenceNumber
    • getPadding

      public int getPadding()
      Specified by:
      getPadding in interface EspHeader
      Returns:
      int Returns a int
    • setPadding

      public void setPadding(int padding)
      Specified by:
      setPadding in interface EspHeader
      Parameters:
      padding - Takes in a parameter of padding
    • getEncryptionData

      public String getEncryptionData()
      Specified by:
      getEncryptionData in interface EspHeader
      Returns:
      String Returns a String
    • setEncryptionData

      public void setEncryptionData(String encryptionData)
      Specified by:
      setEncryptionData in interface EspHeader
      Parameters:
      encryptionData - Takes in a parameter of encryptionData
    • getAuthenticationData

      public String getAuthenticationData()
      Specified by:
      getAuthenticationData in interface EspHeader
      Returns:
      String Returns a String
    • setAuthenticationData

      public void setAuthenticationData(String authenticationData)
      Specified by:
      setAuthenticationData in interface EspHeader
      Parameters:
      authenticationData - Takes in a parameter of authenticationData
    • getEspEncryption

      public EspEncryption getEspEncryption()
      Specified by:
      getEspEncryption in interface EspHeader
      Returns:
      EspEncryption Returns a EspEncryption
    • setEspEncryption

      public void setEspEncryption(EspEncryption espEncryption)
      Specified by:
      setEspEncryption in interface EspHeader
      Parameters:
      espEncryption - Takes in a parameter of espEncryption
    • getEspAuthentication

      public EspAuth getEspAuthentication()
      Specified by:
      getEspAuthentication in interface EspHeader
      Returns:
      EspAuth Returns a EspAuth
    • setEspAuthentication

      public void setEspAuthentication(EspAuth espAuthentication)
      Specified by:
      setEspAuthentication in interface EspHeader
      Parameters:
      espAuthentication - Takes in a parameter of espAuthentication
    • getFieldType

      public PtmpTypeValue getFieldType(String fieldName)
      Overrides:
      getFieldType in class HeaderImpl
    • read

      public void read(EncodedBuffer buffer)
      Reads this object from an EncodedBuffer of raw data
      Specified by:
      read in interface IPCData
      Overrides:
      read in class HeaderImpl
      Parameters:
      buffer - The EncodedBuffer that contains the raw data from which to construct this object
    • pduRead

      public void pduRead(EncodedBuffer buffer)
      Specified by:
      pduRead in interface Signal
      Overrides:
      pduRead in class HeaderImpl
    • getOrderedFieldNames

      public List<String> getOrderedFieldNames()
      Specified by:
      getOrderedFieldNames in interface Signal
      Overrides:
      getOrderedFieldNames in class HeaderImpl
    • encodeTypeAndPayload

      public void encodeTypeAndPayload(EncodedBuffer buffer)
      Specified by:
      encodeTypeAndPayload in interface Signal
      Overrides:
      encodeTypeAndPayload in class HeaderImpl